switch practice problem in c